var id = getvl("id");
$(function(){
	     if(id!=''){}
});

function xinzhengdizhi22(day){
	$("#zhizhufangwen").html("");
	$("#zb").html("");
	$("#ymc").html("");
	$("#dpgz").html("");
	$("#spsc").html("");
	$.ajax({
		url: urlcore + "/api/sourceType/selectVisitorCountByDate2?userId="+id+"&day="+day,
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success:function(data){
			if (data.success == true) {
				$("#zhizhufangwen").html(data.data.size);
				$("#zb").html(data.data.zbfw);
				$("#ymc").html(data.data.ymc);
				$("#dpgz").html(data.data.dpgz);
				$("#spsc").html(data.data.spsc);
			}
		},
		error:function() {
			/* Act on the event */
			alert("error");
		}
	});	

}


function shousuo(times){
	xinzhengdizhi(times);
}

 getOneAdmin2();
function getOneAdmin2() {
	$.ajax({
		url: urlcore + "/api/user/getadmin",
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success: function(data) {
			if(data.success == true) {
				if(data.data!=null && data.data!=""){
						xinzhengdizhi();
				}
			}
		},
		error: function() {
			/* Act on the event */
			alert("error");
		}
	});
}



var num=1;

function xinzhengdizhi(){
	$("#zhizhufangwen").html("");
	$("#zb").html("");
	$("#ymc").html("");
	$("#dpgz").html("");
	$("#spsc").html("");
	$.ajax({
		url: urlcore + "/api/visit/selectVisitList2?num"+num+"&userId="+uuuuid,
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success:function(data){
			if (data.success == true) {
				alert(data.data.statisticsList);
				/*$("#zhizhufangwen").html(data.data.size);
				$("#zb").html(data.data.zbfw);
				$("#ymc").html(data.data.ymc);
				$("#dpgz").html(data.data.dpgz);
				$("#spsc").html(data.data.spsc);*/
			}
		},
		error:function() {
			/* Act on the event */
			alert("error");
		}
	});	

}